const puppeteer = require('puppeteer')

async function testEnvironment () {
  try {
    const browser = await puppeteer.launch({
      args: ['--no-sandbox', '--disable-setuid-sandbox'],
    });

    browser.close();
    console.log('测试完毕，puppeteer正常运行。');
  } catch (e) {
    console.log('测试失败，puppeteer不能正常启动：', e);
  }

}

testEnvironment();